libxl: add all pci devices to xenstore at once (during VM create)
authorMarek Marczykowski <marmarek@mimuw.edu.pl>
Tue, 21 Jun 2011 16:50:47 +0000 (17:50 +0100)
committerMarek Marczykowski <marmarek@mimuw.edu.pl>
Tue, 21 Jun 2011 16:50:47 +0000 (17:50 +0100)
commitb6c23c86fe5a1a027d9e173d9cba7e89c8eb2d67
tree8d0bf0e89312cad87fb950481e90033e282f9f4f
parent1f2591ba3532ccc1118bf93e59fd64541c6897c3
libxl: add all pci devices to xenstore at once (during VM create)

When adding pci devices one by one, pciback notice only the first one. For
every next, "state" is left as is (usualy "4" in that time), so backend will
not rescan xenstore. So when VM is starting all devices should be added at once
and then backend can initialize it.

This applies only to pci, because only pci backend have one xenstore dir for
multiple devices.

Signed-off-by: Marek Marczykowski <marmarek@mimuw.edu.pl>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_pci.c